import Vue from 'vue';
import VueRouter from 'vue-router';
import home from '../views/home.vue';

Vue.use(VueRouter);

const routes = [
  {path: '/home', menu: '首页', component: home},
  {path: '/css', menu: '样式测试', component: () => import('../views/cssTest.vue')},
  {path: '/testTable', menu: '多表头', component: () => import('../views/testTable.vue')},
  {path: '/taskList', menu: '任务列表', component: () => import('../views/taskList.vue')},
  {path: '/testDrag', menu: '拖拽测试', component: () => import('../views/testDrag.vue')},
  {path: '/testFilter', menu: '画像过滤条件', component: () => import('../views/testFilter.vue')},
  {path: '/testChart', menu: 'echarts热力图测试', component: () => import('../views/testChart.vue')},
  {path: '/testHistogram', menu: 'echarts直方图测试', component: () => import('../views/testHistogram.vue')},
  {path: '/testTableJoin', menu: '表连接布局测试', component: () => import('../views/testTableJoin.vue')},
  {path: '/testG6', menu: 'G6测试', component: () => import('../views/testG6.vue')},
  {path: '/testSql', menu: 'SQL编辑器', component: () => import('../views/testSql.vue')},
  {path: '/testGradient', menu: '测试渐变组件', component: () => import('../views/testGradient.vue')},
  {path: '/testSeason', menu: '测试日期选择器', component: () => import('../views/testSeason.vue')},
  {path: '/testFilePreview', menu: '测试文件预览', component: () => import('../views/testFilePreview.vue')},
  {path: '/', redirect: '/home'}
];

const router = new VueRouter({
  mode: 'hash',
  routes
});

export default router;